#include "test_for.h"
#include <iostream>
#include <vector>


void test_for() {
    std::vector<int> v = {0, 1, 3, 5, 8};

    for (auto i : v) {
        std::cout << i << " ";
    }
    std::cout << '\n';

    for (auto& i : v) {
        std::cout << i << " ";
    }
    std::cout << '\n';

    for (auto&& i : v) {
        std::cout << i << " ";
    }
    std::cout << '\n';
}